package com.jy.modules.cims.data.common.dao;

import java.util.List;
import java.util.Map;

import com.jy.modules.cims.data.common.dto.TCMmCreditDealDetailDTO;
import com.jy.platform.core.mybatis.MyBatisRepository;
/**
 * @classname: TCMmCreditDealDetailDao
 * @description: 定义  债权交易流水表明细 持久层 接口
 * 通过@MapperScannerConfigurer扫描目录中的所有接口, 动态在Spring Context中生成实现.
 * 方法名称必须与Mapper.xml中保持一致.
 * @author:  zhiqiang
 */
@MyBatisRepository
public interface TCMmCreditDealDetailDao {
    
    /**
     * @author zhiqiang
     * @description: 分页查询债权交易流水表明细
     * @date 2015-01-16 16:37:59
     * @param searchParams
     * @return
     */
    public List<TCMmCreditDealDetailDTO> searchTCMmCreditDealDetailByPaging(Map<String, Object> searchParams) ;
    
    /**
     * @author zhiqiang
     * @description:查询对象债权交易流水表明细
     * @date 2015-01-16 16:37:59
     * @param searchParams
     * @return
     */
    public List<TCMmCreditDealDetailDTO> searchTCMmCreditDealDetail(Map<String,Object> searchParams);

    /**
     * @author zhiqiang
     * @description:查询对象债权交易流水表明细
     * @date 2015-01-16 16:37:59
     * @param id
     * @return
     */
    public TCMmCreditDealDetailDTO findTCMmCreditDealDetailByPrimaryKey(String id);
    
    /**
     * @author zhiqiang
     * @description: 新增对象债权交易流水表明细
     * @date 2015-01-16 16:37:59
     * @param paramMap
     * @return
     */
    public int insertTCMmCreditDealDetail(Map<String, Object> paramMap);
    
    /**
     * @author zhiqiang
     * @description: 更新对象债权交易流水表明细
     * @date 2015-01-16 16:37:59
     * @param paramMap
     */
    public void updateTCMmCreditDealDetail(Map<String, Object> paramMap);
    
    /**
     * @description: 通过流水号更新对象债权交易流水表明细
     * @param paramMap
     */
    public int updateTCMmCreditDealDetailByTransferId(Map<String, Object> paramMap);
     
    /**
     * @author zhiqiang
     * @description: 按主键删除债权交易流水表明细
     * @date 2015-01-16 16:37:59
     * @param ids
     * @return
     */ 
    public void deleteTCMmCreditDealDetailByPrimaryKey(Map<String, Object> paramMap);
    

    /**
     * 更新关系表
     * @param paramMap
     */
    public void updateDealDetail(Map<String, Object> paramMap);
    
    /**
     * 更新关系表
     * @param paramMap
     */
    public void updateDealDetailFee(Map<String, Object> paramMap);
    
    
}
